package com.engine4cloud.tdf.supervision.dto.update;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 训诫
 *
 * @author wenjie
 * @date 2024-05-31 16:01:12
 */
@Data
@Schema(description = "训诫-请求对象")
public class KhjcAdmonishUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 训诫时间
     */
    @Schema(description = "训诫时间", example = "2024-05-01 00:00:00")
    @NotNull(message = "训诫时间不能为空")
    private LocalDateTime xjsj;

    /**
     * 训诫方式
     */
    @Schema(description = "训诫方式", example = "手动输入")
    @NotBlank(message = "训诫方式不能为空")
    private String xjfs;

    /**
     * 训诫原因
     */
    @Schema(description = "训诫原因", example = "手动输入")
    @NotBlank(message = "训诫原因不能为空")
    private String xjyy;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 文书材料
     */
    @Schema(description = "法律文书", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    private List<JzdxFileDTO> instrumentList;
}